#!/usr/bin/env python
# -*- python -*-

"""Setup script for the CoralFTP module distribution:
    single top-level pure Python module, named explicitly
    in 'py_modules'."""

from distutils.core import setup
from distutils.spawn import spawn

spawn("make -C po".split())

setup (# Distribution meta-data
       name = "CoralFTP",
       version = "0.2.2",
       description = "FTP client written in PyGTK",
       author = "Ling Li",
       author_email = "lilingv@gmail.com",
       url = "http://sourceforge.net/projects/coralftp/",
       license = "GPL",

# Description of modules and packages in the distribution
       packages = ['coralftp'],
       scripts = ['bin/coralftp'],
       data_files =
       [('/etc/gconf/schemas', ['data/coralftp.schemas']),
        ('/usr/share/applications', ['data/coralftp.desktop']),
        ('/usr/share/pixmaps', ['data/coralftp.xpm']),
        ('/usr/share/coralftp',
         ## You can the list of using the follow command:
         ## for p in data/*png data/*glade; do echo "'$p',"; done
         ['data/abort.png',
          'data/computer.png',
          'data/connect24.png',
          'data/connect.png',
          'data/disconnect.png',
          'data/failed.png',
          'data/folder.png',
          'data/FTP1.png',
          'data/FTP2.png',
          'data/get_arrow.png',
          'data/local_browser.png',
          'data/parent_dir.png',
          'data/put_arrow.png',
          'data/refresh.png',
          'data/stop.png',
          'data/switch_view.png',
          'data/transfer.png',
          'data/transfer_selected.png',
          'data/up_arrow_16.png',
          'data/coralftp.glade']),
        ('/usr/share/locale/zh_CN/LC_MESSAGES/', ['po/zh_CN/coralftp.mo'])
       ],
      )
